<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_manage_details', function (Blueprint $table) {
            $table->id();
            $table->integer('shop_manage_id')->default(0)->comment('商店id');
            $table->string('key')->default('')->comment('键值');
            $table->string('value')->default('')->comment('键名');
            $table->string('mark')->default('')->comment('备注');
            $table->integer('model_id')->default(0)->comment('模块分类id');
            $table->longText('other')->default('')->comment('其它字符串');
            $table->timestamps();
        });
        \DB::statement("ALTER TABLE `shop_profile_templates` comment '商店管理副表'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('shop_manage_details');
    }
};
